﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AmiDraw.Code.Util
{
    class PathUtil
    {
        public static string GetUserDataPath(long qq)
        {
            var fileInfo = new FileInfo(Path.Combine(AppContext.BaseDirectory, "Ami", "抽卡3", "数据", $"{qq}.ini"));
            if (!fileInfo.Directory.Exists)       
                fileInfo.Directory.Create();
            if (!fileInfo.Exists)
                fileInfo.Create().Close();
            return fileInfo.FullName;
        }
    }
}
